home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / tools / curses / changes.txt < prev    next >
Encoding:
Text File  |  1991-12-23  |  2.3 KB  |  55 lines

  1.  
  2. PC Curses - A retouch
  3. =====================
  4.  
  5. This is some notes about changes to PC curses 1.3. The original source code
  6. is from Bjorn Larsson. It was dated 1987, and this suggested the software
  7. has not been touched for a very long time.
  8.     
  9. This PC curses is not mine! It is a PD package that I improve for my own
  10. use. There have been substantial changes/improvements which will make life
  11. much easier for a PC programmer who would want his program to compile under
  12. UNIX curses. Be ware though that there are curses in SysV UNIX and also in
  13. BSD. These two are not totally compatible. Many functions are not available
  14. in BSD curses.
  15.  
  16.     - It is updated to ANSI-C compatible and C++ compatible. A header file
  17.       is provided for C++. This is done with BorlandC++ . If your compiler
  18.       does not work well with it, you have to modify it. It is fairly
  19.       straight forward. There is no special linking procedure.
  20.  
  21.     - A colour scheme for text attributes have been built for EGA/VGA
  22.       monitor. The documentation is in file colours.txt
  23.  
  24.     - An extra routine wgetatpos(win, y, x) is defined as a macro. This
  25.       allow a you to peek at location x, y of window win. It returns a word
  26.       of two bytes. To get the character simply AND it witth 0xff
  27.  
  28.       Example:
  29.  
  30.             To get the character code back.
  31.  
  32.                 c = wgetatpos(win, y, x) & 0xff;
  33.  
  34.       This macro is handy for users to peek at a point in the current
  35.       window. With it, you can save a location on the window, overwrite it
  36.       with something else. Then finally put back what was there before. It
  37.       is also handy for changing attributes of certain spots in a window
  38.       without having to redraw everything.
  39.  
  40.       In paralell with this macro a routine wputatpos(win, y, x, c) is
  41.       written to put back what you get from wgetatpos(). This is for you to
  42.       restore the character at the position.
  43.  
  44.       Note that c is a 2 bytes integer returned by wgetatpos(win, y, x). It
  45.       has both colour attributes and ascii code of the character.
  46.  
  47.     - The two routines mentioned above are supposed to be part of curses.
  48.       They are clones of  mvwinch() and mvwinsch(). Unfortunately the two
  49.       proper routines do appear to be buggy. So I will have to fix these
  50.       before everyone can use it.
  51.  
  52. // End of changes.txt
  53.  
  54.  
  55.